<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="/Public/Admin/Css/public.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
	<table class="table">
		<tr>
			<th>ID</th>
			<th>标题</th>
			<th>所属分类</th>
			<th>发布时间</th>
			<th>操作</th>
		</tr>		
			<?php if(is_array($boke)): foreach($boke as $key=>$v): ?><tr>
					<td><?php echo ($v["id"]); ?></td>
					<td><?php echo ($v["title"]); ?>
						<?php if(is_array($v["attr"])): foreach($v["attr"] as $key=>$value): ?><font color="<?php echo ($value["color"]); ?>">[<?php echo ($value["name"]); ?>]</font><?php endforeach; endif; ?>
					</td>
					<td><?php echo ($v["step"]); ?></td>
					<td><?php echo (date('Y-m-d H:i',$v["time"])); ?></td>
					<td>					
						<a href="<?php echo U('Home/Bowen/restore',array('id'=> $v['id']));?>">[还原]</a>
						<a href="<?php echo U('Home/Bowen/realdel',array('id'=> $v['id']));?>">[彻底删除]</a>
					</td>
				</tr><?php endforeach; endif; ?>
				<tr>
					<td colspan="5" align="center">
						<form action="<?php echo U('Home/Bowen/delall');?>" method="POST">
							<input type="submit" value="清空回收站">
						</form>
					</td>
				</tr>		
	</table>
</body>
</html>